home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
081
/
sirius50.arc
/
SIR050S.ARC
/
RECEIPT.SIR
< prev
next >
Wrap
Text File
|
1987-06-29
|
2KB
|
61 lines
;
; RECEIPT.SIR
;
; Now Opus and Fido systems can handle SEAdog file requests:
;
; Review entire netmail area, generating return receipts as requested.
; Idea and original script by Pat McDonald (109/657).
;
; (See also RECEIPTG.SIR for a version of this same idea which uses
; Sirius' logical group facility.)
;
(View (Continuous)
View (Xpertise (High))
Area (Netmail)
;
; Make sure all messages are scanned.
;
Group (Define ('A'))
0 Next
! (While (@Msg# LE @HighMsg#))
! (If (@ReceiptReq AND NOT @Local))
Tag
;
; Make a copy of the receipt request header, and log it.
;
Copy (High Take)
! (If (NOT @NoBody))
Doctor (Body (Delete (1 999)))
! (End)
Copy (Flat file ('=RECEIPT.TMP'))
Copy (Flat file ('RECEIPT.LOG'))
Kill ('y')
Back
;
; Generate the return receipt.
;
Reply (Handling (Kill/sent)
Attachments ()
Requests ()
Private ('y')
Subject ('Receipt')
Prefix ()
Body ('This is to acknowledge receipt of the following message:'
' ')
Bodywork (Get ('RECEIPT.TMP' 2)
Append (' '
' --- Automatic Message from Sirius 0.50'))
Save ())
;
; Remove the receipt-request flag.
;
Doctor (Netmail (Requests (Receipt)))
! (End)
Next
! (End)
;
Out ('All return receipt requests have now been logged and acknowledged.'))
;
; Throw away the just-created RECEIPT.TMP file at your convenience.
;